/* 基础设置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Segoe UI", sans-serif;
    background-color: #f4f6f8;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* 头部样式 */
header {
    text-align: center;
    margin-bottom: 20px;
}

h1 {
    font-size: 2rem;
    color: #2c3e50;
}

/* 导航栏样式 */
.tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.tab {
    flex: 1;
    text-align: center;
    padding: 15px 20px;
    text-decoration: none;
    color: #333;
    transition: background-color 0.3s, color 0.3s;
    cursor: pointer;
    font-weight: bold;
}

.tab:hover {
    background-color: #ecf0f1;
}

.tab.active {
    background-color: #3498db;
    color: white;
}

/* 内容面板样式 */
.tab-content {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.content {
    display: none;
}

.content.active {
    display: block;
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.panel-header h2 {
    font-size: 1.25rem;
}

/* 表格样式 */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

th,
td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

th {
    background-color: #f2f2f2;
    color: #555;
}

tr:hover {
    background-color: #f9f9f9;
}

/* 操作区样式 */
.action-area {}

/* 翻页区样式 */
.pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 8px 0;
    border-radius: 8px;
    padding: 10px 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    background-color: #ffffff;
    font-family: "Segoe UI", sans-serif;
}

.left-pagination-container,
.jumpForm {
    display: flex;
    align-items: center;
    gap: 10px; /* 内部元素间距 */
}

/* 输入框统一样式 */
.customized-input {
    padding: 6px 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    margin: 5px;
    font-size: 14px;
    transition: all 0.3s ease;
    box-sizing: border-box; /* 确保内边距不影响宽度计算 */
}

.customized-input:focus {
    border-color: #007bff;
    outline: none;
    box-shadow: 0 0 3px rgba(0, 123, 255, 0.5);
}

.customized-input.short {
    width: 60px;
}

.customized-input.middle {
    width: 120px;
}

.customized-input.long {
    width: 200px;
}

/* 统一下拉选择框样式 */
select {
    padding: 6px 30px 6px 10px; /* 增加右侧内边距以适应自定义下拉箭头 */
    border: 1px solid #ccc;
    border-radius: 4px;
    margin: 5px;
    font-size: 14px;
    transition: all 0.3s ease;
    box-sizing: border-box;
    background-color: white;
    appearance: none; /* 移除默认下拉箭头 */
    -webkit-appearance: none; /* 对于 Safari 浏览器 */
    -moz-appearance: none; /* 对于 Firefox 浏览器 */
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24'%3E%3Cpath fill='%23999' d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 12px auto;
    cursor: pointer;
    width: 120px; /* 中等长度 */
}

select:focus {
    border-color: #007bff;
    outline: none;
    box-shadow: 0 0 3px rgba(0, 123, 255, 0.5);
}

/* 模态框样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
}

.modal-content {
    background-color: #fff;
    margin: 15% auto;
    padding: 20px;
    border-radius: 8px;
    width: 400px;
    position: relative;
}

.close-button {
    color: #aaa;
    float: right;
    font-size: 28px;
    cursor: pointer;
    font-weight: bold;
}

.close-button:hover,
.close-button:focus {
    color: black;
    text-decoration: none;
}

.form-group {
    margin: 5px 0;
}

/* 自定义按钮样式 */
.customized-button {
    padding: 8px 16px;
    background-color: #2ecc71;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s ease, opacity 0.3s ease;
}

.customized-button:hover {
    background-color: #27ae60;
}

.customized-button:disabled {
    background-color: #b3b3b3;
    color: #cccccc;
    cursor: not-allowed;
    opacity: 0.65;
}